package cn.data.stream.config.parse;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;

/**
 * @author shi hong yu
 */
@XmlRootElement(name="data-stream")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class DataStreamConfigInfo {
    @XmlElement(name = "input-stream")
    private List<ComponentNode> inputStreamList;
    @XmlElement(name = "stream",required = true)
    private List<ComponentNode> streamList;
    @XmlElement(name = "output-stream")
    private List<ComponentNode> outputStreamList;

    private Map<String,ComponentNode> nodeMap = new HashMap<>();
}
